/**
 * 
 */
package com.seascape.swms.framework.model;

/**
 * @author Lay
 *
 */
public class PageParam<T> {

	private Long pageNo = 1L;

	private Long pageSize = 20L;

	private T params;

	public PageParam() {

	}

	public PageParam(Long pageNo, Long pageSize) {
		if (pageNo != null) {
			this.pageNo = pageNo;
		}
		if (pageSize != null) {
			this.pageSize = pageSize;
		}
	}

	public PageParam(Long pageNo, Long pageSize, T params) {
		this(pageNo,pageSize);
		this.params = params;
	}

	/**
	 * @return the pageNo
	 */
	public Long getPageNo() {
		return pageNo;
	}

	/**
	 * @param pageNo
	 *            the pageNo to set
	 */
	public void setPageNo(Long pageNo) {
		this.pageNo = pageNo;
	}

	/**
	 * @return the pageSize
	 */
	public Long getPageSize() {
		return pageSize;
	}

	/**
	 * @param pageSize
	 *            the pageSize to set
	 */
	public void setPageSize(Long pageSize) {
		this.pageSize = pageSize;
	}

	/**
	 * @return the params
	 */
	public T getParams() {
		return params;
	}

	/**
	 * @param params
	 *            the params to set
	 */
	public void setParams(T params) {
		this.params = params;
	}

}
